<?php
if(!function_exists('loadDir')){
	function loadDir($dirname){
		$files = scandir($dirname);
		foreach($files as $file){
			if(is_file($dirname.'/'.$file)){
				require_once($dirname.'/'.$file);
			}
		}
	}
}

loadDir(dirname(__FILE__));
loadDir(dirname(__FILE__).'/configs');
TConf::init();
